<?php
header("Content-type:text/html; charset=utf8");
$target_path = "../upload/";
$target_path = $target_path.basename( $_FILES['uploadedfile']['name']);
if(isset($_FILES['uploadedfile'])){
		if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)){
			//ob_clean();
			echo "The file ".basename($_FILES['uploadedfile']['name'])." has been uploaded.";
		}else{
			//ob_clean();
			echo "There was an error uploading the file, please try again!".$_FILES['uploadedfile']['error'];
	}
}
else{
	
}

?>